package com.bootdo.screen.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.screen.dao.PtresourceDao;
import com.bootdo.screen.domain.PtresourceDO;
import com.bootdo.screen.service.PtresourceService;



@Service
public class PtresourceServiceImpl implements PtresourceService {
	@Autowired
	private PtresourceDao ptresourceDao;
	
	@Override
	public PtresourceDO get(Integer id){
		return ptresourceDao.get(id);
	}
	
	@Override
	public List<PtresourceDO> list(Map<String, Object> map){
		return ptresourceDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return ptresourceDao.count(map);
	}
	
	@Override
	public int save(PtresourceDO ptresource){
		return ptresourceDao.save(ptresource);
	}
	
	@Override
	public int update(PtresourceDO ptresource){
		return ptresourceDao.update(ptresource);
	}
	
	@Override
	public int remove(Integer id){
		return ptresourceDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return ptresourceDao.batchRemove(ids);
	}
	
}
